import request from "@/utils/request";

// 获取商品列表
export const getGoodsList = (param) => {
  return request({
    url: "/business_goods_manage/get_goods_list",
    method: "post",
    data: param,
  });
};
// 删除商品
export const delGoods = (param) => {
  return request({
    url: "/business_goods_manage/del_goods",
    method: "post",
    data: param,
  });
};
// 编辑商品
export const editGoods = (param) => {
  return request({
    url: "/business_goods_manage/edit_goods",
    method: "post",
    data: param,
  });
};
// 获取商品详情
export const getGoodsDetail = (param) => {
  return request({
    url: "/business_goods_manage/get_goods_detail",
    method: "post",
    data: param,
  });
};
// 添加商品
export const addGoods = (param) => {
  return request({
    url: "/business_goods_manage/add_goods",
    method: "post",
    data: param,
  });
};
// 获取商品分类
export const goodsManage = (param) => {
  return request({
    url: "/business_goods_manage/get_category_list",
    method: "post",
    data: param,
  });
};

